package com.pasabahceambalaj.session;

import com.pasabahceambalaj.entity.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityHome;

@Name("isletmeHome")
public class IsletmeHome extends EntityHome<Isletme> {

	public void setIsletmeId(Long id) {
		setId(id);
	}

	public Long getIsletmeId() {
		return (Long) getId();
	}

	@Override
	protected Isletme createInstance() {
		Isletme isletme = new Isletme();
		return isletme;
	}

	public void load() {
		if (isIdDefined()) {
			wire();
		}
	}

	public void wire() {
		getInstance();
	}

	public boolean isWired() {
		return true;
	}

	public Isletme getDefinedInstance() {
		return isIdDefined() ? getInstance() : null;
	}

}
